import { ajax } from "../lib/utils/ajax";
import { loadShaderFromUrl } from "../lib/loadShader";
import { createGLContext } from "../lib/creatGLContext";


function testLoadShader(){
    var gl = createGLContext("#canvas");
    //console.log(gl)
    new Promise(function(resolve){
        loadShaderFromUrl(gl, "/dist/shader/shader", function(){
            //console.log("-----+---");
            resolve();
        });
    }).then(function(){
        //console.log(gl);
    })
    
}
export {testLoadShader};